package com.gof.example.chain;

/**
 * Created with IntelliJ IDEA.
 * Created by zhiyuan on 2018/5/9 21:11.
 * haiming.fei@tongdun.cn
 */
public class President extends Approver {

    @Override
    void requestHandler(Offwork offwork) {
        if (offwork.getDays() >= 10 && offwork.getDays() < 30) {
            System.out.println("president " + super.fullName + " handle " + offwork);
        } else {
            System.out.println("unable handle request, " + offwork);
        }
    }
}
